package com.zyy.flyweight;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/08/03 22:01
 */
public class Client {
    public static void main(String[] args) {
        BoxFactory boxFactory = BoxFactory.getInstance();
        AbstractBox lBox = boxFactory.getShape("L");
        lBox.display("红色");
        lBox.display("蓝色");

        AbstractBox oBox = boxFactory.getShape("O");
        oBox.display("灰色");
    }
}
